﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Administrator_Default" %>

<%@ Register Src="../Controls/admin/ucQuick.ascx" TagName="Quick" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%---------------------------------------------------------EDIT TITLE--------------------------------------------------------------------%>
    <title>Admin</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <!-- stylesheets -->
    <link rel="stylesheet" type="text/css" href="../resources/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/style.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="../resources/css/style_full.css" />
    <link id="color" rel="stylesheet" type="text/css" href="../resources/css/colors/blue.css" />
    <!-- scripts (jquery) -->
    <script src="../resources/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <!--[if IE]><script language="javascript" type="text/javascript" src="../resources/scripts/excanvas.min.js"></script><![endif]-->
    <script src="../resources/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.selectmenu.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.flot.min.js" type="text/javascript"></script>
    <script src="../resources/scripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
    <!-- scripts (custom) -->
    <script src="../resources/scripts/smooth.js" type="text/javascript"></script>
    <script src="../resources/scripts/smooth.menu.js" type="text/javascript"></script>
    <!-- <script src="../resources/scripts/smooth.chart.js" type="text/javascript"></script> -->
    <script src="../resources/scripts/smooth.table.js" type="text/javascript"></script>
    <script src="../resources/scripts/smooth.form.js" type="text/javascript"></script>
    <script src="../resources/scripts/smooth.dialog.js" type="text/javascript"></script>
    <script src="../resources/scripts/smooth.autocomplete.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.validate.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.cookie.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            style_path = "../resources/css/colors";

            $("#date-picker").datepicker();

            $("#box-tabs, #box-left-tabs").tabs();

            $("#frm").validate();
        });
        function ImgError(source) {
            source.src = "../resources/images/no-image.jpg";
            source.onerror = "";
            return true;
        }      
    </script>
</head>
<body>
    <form id="frm" runat="server">
    <div id="colors-switcher" class="color">
        <a href="" class="blue" title="Blue"></a><a href="" class="green" title="Green">
        </a><a href="" class="brown" title="Brown"></a><a href="" class="purple" title="Purple">
        </a><a href="" class="red" title="Red"></a><a href="" class="greyblue" title="GreyBlue">
        </a>
    </div>
    <!-- header-->
    <div id="header">
        <!-- logo -->
        <%---------------------------------------------------------EDIT LOGO--------------------------------------------------------------------%>
        <div id="logo">
            <h1>
                <a href="" title="Admin">
                    <img src="../resources/images/logo.png" alt="Admin" /></a></h1>
        </div>
        <!-- end logo -->
        <!-- user -->
        <ul id="user">
            <li class="first"><a href="#">Xin chào
                <asp:Literal ID="ltrUserName" runat="server" />
                !</a></li>
            <li class="highlight" id="liMessages" runat="server">
                <asp:LinkButton runat="server" ID="lbtMessages" Text="Messages" OnClick="lbtMessages_Click" />
            </li>
            <li><a href="default.aspx?module=ChangePassword">Đổi mật khẩu</a></li>
            <li><a href="default.aspx?module=Logout">Thoát</a></li>
            <li class="last highlight"><a href="../pages/">Trang Chủ</a></li>
        </ul>
        <!-- end user -->
        <div id="header-inner">
            <div id="home">
                <a href="default.aspx"></a>
            </div>
            <!-- quick -->
            <ul id="quick">
                <asp:Repeater ID="rptMenu" runat="server" OnItemDataBound="rptMenu_ItemDataBound">
                    <ItemTemplate>
                        <li><a href="#" title='<%#Eval("description") %>'><span class="icon" id="spanIcon"
                            runat="server">
                            <asp:HiddenField ID="hdfThumIcon" runat="server" Value='<%#Eval("thumb_icon") %>' />
                            <asp:HiddenField ID="hdfDescription" runat="server" Value='<%#Eval("description")%>' />
                            <img src='<%#"../resources/images/icons/"+Eval("thumb_icon") %>' alt='<%#Eval("thumb_icon")%>' /></span>
                            <span id="spanName" runat="server">
                                <%#Eval("description") %></span></a>
                            <ul>
                                <asp:Repeater ID="rptChildMenu1" DataSource='<%#getChildMenus(Convert.ToInt32(Eval("admin_module_id")))%>'
                                    runat="server" OnItemDataBound="rptChildMenu1_ItemDataBound">
                                    <ItemTemplate>
                                        <li id="liChild1" runat="server"><a href='<%#Get_Menu_Link(Eval("module_name").ToString())%>'
                                            runat="server" id="aHasChild">
                                            <%#Eval("description")%></a>
                                            <asp:HiddenField ID="hdfAdmin_module_id" runat="server" Value='<%#Eval("admin_module_id") %>' />
                                            <ul id="ulChild2" runat="server">
                                                <asp:Repeater ID="rptChild2" runat="server" DataSource='<%#getChildMenus(Convert.ToInt32(Eval("admin_module_id")))%>'
                                                    OnItemDataBound="rptChild2_ItemDataBound">
                                                    <ItemTemplate>
                                                        <li id="liChild2" runat="server"><a href='<%#"Default.aspx?module="+Eval("module_name") %>'>
                                                            <%#Eval("description")%></a></li>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </ul>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <!-- end quick -->
            <div class="corner tl">
            </div>
            <div class="corner tr">
            </div>
        </div>
    </div>
    <!-- end header -->
    <!-- content -->
    <div id="content">
        <asp:PlaceHolder ID="plhdMain" runat="server"></asp:PlaceHolder>
        <uc:Quick ID="ucQuick" runat="server" />
    </div>
    <!-- end content -->
    <!-- footer -->
    <div id="footer">
        <p>
            Copyright © 2009-2010 Công ty cổ phần <a href="http://o2s.vn">O2S</a>. Mail: contact@o2s.vn.
            All Rights Reserved.</p>
    </div>
    <!-- end footert -->
    </form>
</body>
</html>
